package com.zr.service.client.impl

import com.zr.mapper.lease.CustomerMapper
import com.zr.service.client.ClientServer
import com.zr.util.Md5Util
import com.zr.vo.lease.Customer
import org.springframework.stereotype.Service
import javax.annotation.Resource

@Service
class ClientServerImpl: ClientServer {
    @Resource
    val customerMapper:CustomerMapper?=null
    override fun LoginCustomer(customer: Customer): Customer? {
        customer?.password = Md5Util.EncoderByMd5(customer?.password)
        return customerMapper?.LoginCustomer(customer)

    }
}